package com.example.demo.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import redis.clients.jedis.Jedis;

@Configuration
public class RedisConfig {

  @Bean
  public Jedis getJedis(){
    Jedis jedis = new Jedis("hk3cvdv01197", 6379);
    jedis.auth("52Myself.");
    return jedis;
  }
}
